<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="root">
    {{message}}
  </div>
  
  <script src="./libs/vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#root',
      data: {
        message: 'hello'
      },
      beforeCreate() {
        console.log('beforeCreate', this.$data)
      },
      created() {
        console.log('created', this.$data)
      },
      beforeMount() {
        console.log('beforeMount', this.$el)
      },
      mounted() {
        console.log('mounted', this.$el)
      },
      beforeUpdate() {
        console.log('beforeUpdate')
      },
      updated() {
        console.log('updated')
      },
      beforeDestroy() {
        console.log('beforeDestroy')
      },
      destroyed() {
        console.log('destroyed')
      }
    })
  </script>
</body>
</html>